@import '~styles/colors.less';

.root {
  display: inline-block;
  height: 26px;
}

.title {
  display: inline-block;
  vertical-align: top;
  border: 0;
  outline: 0;
}

.titleStyle {
  font-weight: 300;
  font-size: 18px;
  line-height: 26px;
  color: @adminTextHighlight;
}

.editButton {
  position: relative;

  :global i {
    position: absolute;
    left: 100%;
    top: 0;

    color: @adminText;
    font-size: 16px;
    line-height: 26px;
    height: 26px;
    margin-left: 20px;
    opacity: 0;
    transition: all 0.1s ease-out;

    white-space: nowrap;
    overflow: hidden;
    top: 50%;
    transform: translateY(-50%);
  }

  &:hover :global i {
    opacity: 1;
  }
}

.formButton {
  display: inline-block;
  vertical-align: top;
  text-transform: uppercase;
  font-size: 11px;
  margin: 0;
  padding: 0;
  margin-left: 10px;
  line-height: 26px;
  height: 26px;
  white-space: nowrap;
  overflow: hidden;
  top: 50%;
  position: relative;
  transform: translateY(-50%);
}

.confirmButton {
  color: @primary;
  margin-left: 25px;
}

.cancelButton {
  color: @adminText;

  &:hover {
    color: @alert;
  }
}

.big {
  .root {
    height: 49px;
  }
  .title {
    line-height: 49px;
    height: 49px;
  }
  .editButton {
    :global i {
      line-height: 49px;
      height: 49px;
    }
  }
  .formButton {
    height: 49px;
  }
}

.sub {
  .root {
    height: 25px;
  }

  .titleStyle {
    font-size: 12px;
    line-height: 25px;
    color: @adminText;
  }
  .editButton {
    :global i {
      font-size: 13px;
      line-height: 25px;
    }
  }
  .formButton {
    line-height: 25px;
    height: 25px;
  }
}
